<template>
	<view class="mainpadding2" style="padding-bottom: 150rpx;">
		<view class="flexcenter" v-if="!list.length">
			<view class="placeholderimage" style="margin-top: 100rpx;" ></view>
		</view>
		
		 <view class="  ">
			 
			 <ljs-steps :data="list">
					  <template v-slot:default="{row}">
							<view class="item" style="margin-top: 30rpx;padding-top: 10rpx;">
								<view class="info">{{ row.createtime_text }}</view>
								<view class="flexleft">
									<image :src="row.user.avatar_text" mode="" class="headimg margin_right"></image>
									<view>
										<view class="flexleft main_size bold hei_text">
											<view class="margin_right">{{row.user.nickname}}</view>
										</view>
										<view class="xiaohui margin_top1">{{jiami(row.user.mobile)}}</view>
									</view>
								</view>
								
								<view class="dis">{{row.content}}</view>
								<view class="dis" v-show="row.content1">{{row.content1}}</view>
							</view>
						</template>
			 </ljs-steps>
		 	
		 </view>

		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				 opts: {
					dotSize: 22, // 大小
					dotRadius: '0', // 圆角
					dotColor: 'red', // 颜色
					lineSize: 8 // 大小
				},
				  data: [
					{
						date: '2024-07-01',
						info: '完成10个俯卧撑！',
					},
					{
						date: '2024-07-02',
						info: '完成20个俯卧撑！',
					},
					{
						date: '2024-07-03',
						info: '完成30个俯卧撑！',
					},
					{
						date: '2024-07-04',
						info: '完成40个俯卧撑！',
					}
				],
				list: '',
				order_goods_id: ""
			}
		},
		onLoad(options) {
			this.order_goods_id = options.id
			this.get();
		},
		methods: {
			
			async get() {
				let url = "/api/ordergoods/orderLogIndex"
				
				let res = await this.http.request(url, "POST", {
					order_goods_id:this.order_goods_id
				})
				if (res.code == 1) {
					
					this.list = res.data;
				} else if (res.code == 0) {
					this.http.toast(res.msg);
				} else {
					this.http.toast('暫無數據');
				}
			},
		
		}
	}
</script>

<style lang="scss">
	
</style>